package com.tang.lts.core.nio.codec;

import com.tang.lts.core.nio.channel.NioChannel;

import java.nio.ByteBuffer;

/**
 * @author Tang
 * @classname Encoder
 * @description [  ]
 * @date 2022/5/12 23:06
 */
public interface Encoder {

    ByteBuffer encode(NioChannel channel, Object msg);

}
